from dataclasses import dataclass

from src.application.common.exceptions import ApplicationException


@dataclass
class OutOfStock(ApplicationException):
    available_proxies_count: int

    @property
    def message(self) -> str:
        return f"Not enough proxies ({self.available_proxies_count}) to complete order"
